package com.bestow.basic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 基准利率定义对象 fnd_base_rate_set
 * 
 * @author liliu
 * @date 2022-09-02
 */
public class FndBaseRateSet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 基准利率代码 */
    @Excel(name = "基准利率代码")
    private String baseRateSet;

    /** 基准利率描述 */
    @Excel(name = "基准利率描述")
    private String description;

    /** 利率类型 */
    @Excel(name = "利率类型")
    private String baseRateType;

    /** 币种 */
    @Excel(name = "币种")
    private String currency;

    /** 启用标识 */
    @Excel(name = "启用标识")
    private String enabledFlag;

    /** 有效期从 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期从", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validFrom;

    /** 有效期到 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期到", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validTo;

    public void setBaseRateSet(String baseRateSet) 
    {
        this.baseRateSet = baseRateSet;
    }

    public String getBaseRateSet() 
    {
        return baseRateSet;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setBaseRateType(String baseRateType) 
    {
        this.baseRateType = baseRateType;
    }

    public String getBaseRateType() 
    {
        return baseRateType;
    }
    public void setCurrency(String currency) 
    {
        this.currency = currency;
    }

    public String getCurrency() 
    {
        return currency;
    }
    public void setEnabledFlag(String enabledFlag) 
    {
        this.enabledFlag = enabledFlag;
    }

    public String getEnabledFlag() 
    {
        return enabledFlag;
    }
    public void setValidFrom(Date validFrom) 
    {
        this.validFrom = validFrom;
    }

    public Date getValidFrom() 
    {
        return validFrom;
    }
    public void setValidTo(Date validTo) 
    {
        this.validTo = validTo;
    }

    public Date getValidTo() 
    {
        return validTo;
    }

    /** 币种描述 */
    private String currencyN;

    public String getCurrencyN() {
        return currencyN;
    }

    public void setCurrencyN(String currencyN) {
        this.currencyN = currencyN;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("baseRateSet", getBaseRateSet())
            .append("description", getDescription())
            .append("baseRateType", getBaseRateType())
            .append("currency", getCurrency())
            .append("enabledFlag", getEnabledFlag())
            .append("validFrom", getValidFrom())
            .append("validTo", getValidTo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("currencyN",getCurrencyN())
            .toString();
    }
}
